import request from '@/utils/request'

// 查询设备未绑定列表
export function listDeviceunbind(query) {
  return request({
    url: '/devicebind/devicebind/list',
    method: 'get',
    params: query
  })
}

// 查询设备未绑定详细
export function getDeviceunbind(correctionuserId) {
  return request({
    url: '/devicebind/devicebind/' + correctionuserId,
    method: 'get'
  })
}

// 新增设备未绑定
export function addDeviceunbind(data) {
  return request({
    url: '/devicebind/devicebind',
    method: 'post',
    data: data
  })
}

// 修改设备未绑定
export function updateDeviceunbind(data) {
  return request({
    url: '/devicebind/devicebind',
    method: 'put',
    data: data
  })
}

// 删除设备未绑定
export function delDeviceunbind(correctionuserId) {
  return request({
    url: '/devicebind/devicebind/' + correctionuserId,
    method: 'delete'
  })
}


// 绑定设备
export function bind(data) {
  return request({
    url: '/devicebind/devicebind/bind',
    method: 'put',
    data: data
  })
}
